package com.TheyChat.service.config.core.exception;

/**
 * @Author: victor.w.ye
 * @Date: 2021/2/20 15:33
 * @Copyright:
 * @Company: luban
 * @Version: 1.0.0
 **/
public enum ResponseMessageErrorCodeEnum {

    /**
     * 成功
     */
    SUCCESS(0),
    /**
     * 业务异常
     */
    BUSINESS_EXCEPTION(400),
    /**
     * 未认证
     */
    NOT_AUTHORIZED(401),
    /**
     * 未授权
     */
    NOT_AUTHENTICATED(402),

    NOT_FOUND(404),
    //程序错误
    ERROR(500);

    private int code;

    ResponseMessageErrorCodeEnum(int code) {
        this.code = code;
    }

    public int getCode() {
        return code;
    }

    public void setCode(int code) {
        this.code = code;
    }
}